public class Zuoye11 {
    public static void main(String[] args) {
        int a;
        int count=1;
        for(a=1;a<=10000;a++)
        {
            if(a%9==0)
            {
                System.out.print(a+" ");

                count++;
                if(count%20==0)
                    System.out.print("\n");
            }


        }
    }
}
